package com.lzh.mapper;

import com.lzh.bean.User1;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMapper1{

    /**
     * 保存用户
     * @param user1
     * @return
     */
    int save(User1 user1);

    /**
     * 根据用户名查询用户
     * @param username
     * @return
     */
    int queryUserByUserName(String username);

    User1 queryByUserName(String username);

    int deleteById(Integer id);

    User1 queryUserById(Integer id);

    int resetPassword(int id);

    int update(@Param("account") String account,@Param("password") String password,@Param("id") Integer id);

}
